def is_match(s, regs):
    is_matched = False
    for reg in regs:
        match = None
        try:
            match = re.match(reg, s)
        except:
            print 'have false'+reg
            pass
        if match:
            is_matched = True
            
    return is_matched

EXCLUDE_URL_REGS = [
                r'.*/avatar.php?.*',
]
s = 'http://www.the9sex.com/uc_server/avatar.php?uid=424738&size=middle'
import re
print is_match(s, EXCLUDE_URL_REGS)

